# import io
# from oss_ops import OssHandler
# from paillier_zk import PaillierZK
# from paillier_handler import PaillierZKFileHandler

# if __name__ == '__main__':
#     zk = PaillierZK(512)
#     oss_handler = OssHandler('LTAI5tKWddkbjVhbzavB5Cgr', '4pPqJK9igFh3pcBJZYoJZdgXWnLGlI',
#                                 'medicalinformation', 'http://oss-cn-beijing.aliyuncs.com')
#     handler = PaillierZKFileHandler(zk,oss_handler)
#     file_path = 'D:/code/project/smart-oss/BGV/1.jpg'
#     with open(file_path, 'rb') as file:
#             file_obj = io.BytesIO(file.read())  # 读取文件并将其转换为 BytesIO 对象
#     filename = '1.jpg'              # ⚠️ 你可以换成 txt、png 都行
#     output_dir = 'output_encrypted'
#     decrypted_file = 'output_decrypted.jpg'
    
# #     handler.encrypt_file(file_obj, filename)
#     handler.decrypt_file('1.jpg', decrypted_file)
